package net.leesrobots.data.sink;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Test {
    public static void main(String[] args) {
        String table = "jdp_tb_trade_%s";
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM");
        // SimpleDateFormat的format(Date date)方法将Date转换为String
        String formattedTime = simpleDateFormat.format(new Date());
        String ss = String.format(table, formattedTime);
        System.out.println(ss);
    }
}